package a17_Reflection.Test.Constructor;

/**
 * @Author quan
 * @Description TODO
 * @Date 2023/5/1 15:45
 */
public class Student1 {
    private String name;
    private int age;
    public Student1() {
    }
    public Student1(String name) {
        this.name = name;
    }
    protected Student1(int age) {
        this.age = age;
    }
    private Student1(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
